<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>审核任务 - 外咖APP任务发布平台</title>
		<link rel="shortcut icon" href="/static/img/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" href="/static/css/bizJobsInfo.css" />
	</head>

	<body>
		<c:choose>
		   <c:when test="${bizJobs.auditStatus == 0 }">  
		    	<div id="page-title">审核任务</div>
		   </c:when>
		   <c:otherwise> 
		   		<div id="page-title">查看审核任务</div>
		   </c:otherwise>
		</c:choose>
		<div id="boss">
			<div style="display: none;">
				<span id="jobId">${bizJobs.id }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">任务名称:</label> <span>${bizJobs.title }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">报名截止时间:</label> <span>${bizJobs.deadlineForRegistration }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">完成截止时间:</label> <span>${bizJobs.taskCutoffTime }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">任务类型:</label> <span>${bizJobs.name }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">接单人数:</label> <span>${bizJobs.distributorCount }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">任务报酬:</label> <span>${bizJobs.price }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">任务附件:</label> 
				<c:forEach var="attachment" items="${bizJobsAttachment }" varStatus="at">
					<span <c:if test="${at.index > 0}">style="margin-left: 127px;"</c:if> class="span-url">${attachment.url }</span><br/>
				</c:forEach>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">报名须知:</label> <span>${bizJobs.noticeContent }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">任务要求:</label> <span>${bizJobs.resultRequire }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">接单人所在地:</label> <span>${bizJobs.address }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">接单人年龄段:</label> <span>${bizJobs.minimumAge }
				<c:if test="${bizJobs.minimumAge!=null&&bizJobs.maximumAge!=null }">-</c:if>
				${bizJobs.maximumAge }</span>
			</div>
			<div class="inline">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label style="font-size: 16px">接单人职业:</label> <span>${bizJobs.occupationalScope }</span>
			</div>
			<div class="layui-form-item">
				<fieldset class="layui-elem-field">
					<legend id="content-title">任务内容</legend>
					<div class="layui-field-box">
						${bizJobs.content }
					</div>
				</fieldset>
			</div>
			<div class="layui-form-item" style="padding-bottom: 30px;">
				<div class="layui-input-block">
					<c:choose>
					   <c:when test="${bizJobs.auditResult == 0 }">
					    	<button class="layui-btn layui-input-inline btn" style="margin-left: 70%;width: 120px;">审核成功</button>
							<button class="layui-btn layui-input-inline btn" style="margin-left: 10px;width: 120px;">审核失败</button>
					   </c:when>
					</c:choose>
				</div>
			</div>
		</div>

		<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
		<script type="text/javascript" src="/static/layui/layui.all.js"></script>
		<script type="text/javascript" src="/static/js/bizJobsInfo.js"></script>
	</body>

</html>